package br.com.gsa.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Entity
@Table(name="ROLE", schema="APP")
public class Role implements Serializable {

  private static final long serialVersionUID = 5886820991361556707L;

  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  private Long id;

  @NotNull
  @Size(min = 3, max = 60)
  private String name;

  public String getName() {
	return name;
  }
	
  public void setName(String name) {
	this.name = name;
  }
}
